package com.hmall.order.pojo;

public class IDThreadLocal {
    private static final ThreadLocal<Long> THREAD_LOCAL = new ThreadLocal<>();

    public static Long getId(){
      return  THREAD_LOCAL.get();
    }
    public static void setId(Long id){
        THREAD_LOCAL.set(id);
    }
    public static void remove(){
        THREAD_LOCAL.remove();
    }
}
